#include "OdpsUDTFSQLSelectItem.h"
OdpsUDTFSQLSelectItem::OdpsUDTFSQLSelectItem()
{
  aliasList = std::make_shared<std::list<string_ptr>>();
}

OdpsUDTFSQLSelectItem::~OdpsUDTFSQLSelectItem()
{

  // for(std::list<string_ptr >::iterator it = aliasList.begin(); it != aliasList.end(); ++it)
  //{
  // std::cout << __FILE__ << ": " << __LINE__ << ", in SQLExprParser::~SQLExprParser, destructor step 1.1" << std::endl;
  // delete *it;
  //}
  // aliasList.clear();
}
string_ptr OdpsUDTFSQLSelectItem::getAlias()
{
  // fprintf(stderr, "UnsupportedOperationException in SQLStatementImpl::getAlias\n");
  // assert(false);
  throw new UnsupportedOperationException();
}

void OdpsUDTFSQLSelectItem::setAlias(string_ptr alias)
{
  throw new UnsupportedOperationException();
  // fprintf(stderr, "UnsupportedOperationException in SQLStatementImpl::setAlias\n");
  // assert(false);
}

string_list_ptr OdpsUDTFSQLSelectItem::getAliasList()
{
  return aliasList;
}
